package org.jeecgframework.web.material.controller;
import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.jeecgframework.core.common.controller.BaseController;
import org.jeecgframework.web.system.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;



/**   
 * @Description: flowDetailController
 * @date 2015-08-17 10:01:47
 * @version V1.0   
 *
 */
@Scope("prototype")
@Controller
@RequestMapping("/flowDetailController")
public class FlowDetailController extends BaseController {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(FlowDetailController.class);

	@Autowired
	private SystemService systemService;
	private String message;
	
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}


	/**
	 * 页面跳转
	 * 
	 * @return
	 */
	@RequestMapping(params = "flowDetail")
	public ModelAndView company(HttpServletRequest request) {
		return new ModelAndView("material/flowDetail/flowDetailList");
	}
	
	/**
	 * 加载收入页面
	 * 
	 * @return
	 */
	@RequestMapping(params = "queryFlowDetailIncome")
	public ModelAndView queryFlowDetailIncome(HttpServletRequest request) {
		String flowid = request.getParameter("flowid");
		request.setAttribute("flowid", flowid);
		return new ModelAndView("material/flowDetail/queryFlowDetailIncomeList");
	}
	
	/**
	 * 加载支出页面
	 * 
	 * @return
	 */
	@RequestMapping(params = "queryFlowDetailPayout")
	public ModelAndView queryFlowDetailPayout(HttpServletRequest request) {
		String flowid = request.getParameter("flowid");
		request.setAttribute("flowid", flowid);
		return new ModelAndView("material/flowDetail/queryFlowDetailPayoutList");
	}
	

}
